[#macro dynamicpageitemShowView]
<div class="model-form">
    <el-page-header @back="goBack" content="详情">
    </el-page-header>

    <div class="form-title">详细信息</div>
    <el-form class="viewForm" label-width="80px">
        <el-col :span="22">
            <el-form-item label="页面标识">
                <div v-html="viewModel.dynamicPageName"></div>
            </el-form-item>
        </el-col>
        <el-col :span="22">
            <el-form-item label="组件">
                <div v-html="viewModel.componentName"></div>
            </el-form-item>
        </el-col>
        <el-col :span="22">
            <el-form-item label="排序号">
                <div v-html="viewModel.sortNum"></div>
            </el-form-item>
        </el-col>
        <el-col :span="22">
            <el-form-item label="内容">
                <div v-html="viewModel.data"></div>
            </el-form-item>
        </el-col>
        <el-col :span="22">
            <el-form-item label="样式">
                <div v-html="viewModel.style"></div>
            </el-form-item>
        </el-col>
    </el-form>

</div>
[/#macro]
[#macro dynamicpageitemShowConfig]
<script type="text/x-template" id="my-dynamicpageitem-show">
    [@dynamicpageitemShowView /]
</script>
<script type="text/javascript">
    //显示组件开始
    var dynamicpageitemShowConfig = {};
    dynamicpageitemShowConfig.template = "#my-dynamicpageitem-show";
    dynamicpageitemShowConfig.methods = config.basicMethod();
    dynamicpageitemShowConfig.data = function () {
        return {
            viewModel: {
            },
            activeIndex: "1"
        }
    };


    dynamicpageitemShowConfig.mounted = function () {
        var id = this.$route.query.id;
        var self = this;
        var data = {};
        data.id = id;
        this.postData("${siteurl}tenantRest/dynamicpageitem/view.htm", data, function (res) {
            if (res.code == 0) {
                self.viewModel = res;

            }
        });
    }
    var dynamicpageitemShowView = Vue.component('my-dynamicpageitem-view', dynamicpageitemShowConfig);
		//显示组件结束
</script>
[/#macro]